Dynamic busses when starting

Hi, just wondering the best way of having different bus setups for standalone and plugin, as an example.

Should I just call the default contrsuctor to add the basic input/output bus, then delete them, and add what I want?

Doesn’t seem very clean but can’t see another way to do it.