Move user agent into User class.