Refactor net_adm:names/1