Move methods getIpAddress() and getUserAgent() to the Request class