Factorize adding subnets to topo

Prepare for adding local subnets