Dynamic Transaction Groups

We have assets that I have transaction groups for but we have many assets that may be created suddenly, removed suddenly, etc. It wouldn’t be feasible to accommodate these by adding or removing transaction groups manually.

Is there a way to dynamically create transaction groups? For example, by checking a bit to see if it exists?

This may help point you in the right direction.