Move userAgent to peer where it's used.