Stuff like this is crying for a dependency injection container :wink: