Refactor response calls to remove duplicated logic
Merge pull request #12 from cloudkeep/refactor-response

Refactor response calls to remove duplicated logic