Refactor single controller to service and multiple controllers.