Switches to allow calling injectables for testability.