Refactor get request body behavior.
Abstract common behavior into helper module. Closes #2