nameservice: remove some dead code