During automatic ballooning,  ballooning filters can be created so that the parts associated with the current BOM are automatically filtered. The correct (BOM) style must be activated and ballooned.

Of course the correct filter will have to be set up in the LUA customization file: