Refactor classes to pass the HTTPRequest object.