remove unused code from service_controller