Encapsulating hub proxies in factories