refactor response conversion into method