Attempting to reduce cyclomatic complexity of some of the methods for parsing api responses.