Made PortalFactory mergeable