Simple service locator implementation