Refactor code to make_response()