refactored ApprovalService into a service and an api client.