IndexController: Use dependency instead of service locator