Convert class UserAgent -> module UserAgent