Major refactoring of how portals are connected to networks.