Refactor request/response for make them immutable.