Move all response construction support methods into own module