Refactors service_orders controller