Issue with status indicator being invisible

I have an extension that adds a button to quick settings, as such it has an indicator in the top bar (status bar?? - I’m getting the official names for things mixed up, apologies). I don’t want this indicator to be visible, and have successfully made it not, however it’s still taking up space. I’m wondering what I’ve done wrong, and how I can make it truly gone.

You can see when the quick setting is active, there is space added for it to the left of the brightness indicator.

Quick setting active:

Image

Quick setting inactive:

Image

My code is available on GitHub here.