Refactor content_type_response