Ensure that ports are only in exposed modules