Refactoring api_call.parse making some of the transformation functions more cohesive and making sure they are invoked in the appropriate order. Validation comes last