Yeah, these are copy-and-pasted. I can make them exported, but I am not sure it's worth it. This code is sorta temporary, the sane solution is to just use a topo.Server.