Service locator.
Refactor.