Refactor get_responses