Simple abstraction for service locator pattern