Separates the parsing of the response to its own method