Refactor core action to return a parser instance based on the response body

Line is too long. [109/80]