Move preparing data for the api request to separate classes