Net shouldn't depend on main anymore since #2154, only on core.