Refactored api_call.parse to use the lodash compose function