Moves logic from transactions_controller to service_object