Refactor API class and move to Alamofire requests library