We are using utility bar component to display notifications for users: https://developer.salesforce.com/docs/atlas.en-us.api_console.meta/api_console/sforce_api_console_js_utility.htm
But according to our delivery practice, we are always providing feature toggle for every new feature released, e.g. some boolean flag in custom settings to tick for client's admin.
The problem here is how to hide completely such utility bar component based on condition.
So far we've been playing with UtilityBarAPI (https://developer.salesforce.com/docs/atlas.en-us.api_console.meta/api_console/sforce_api_console_methods_lightning_utilityBarAPI.htm) to set width and height to 0, remove icons and titles etc. Is there any better way to achieve this?