Remove the use of databags and fix a bug with settings routers in the subnet template