Take the name-processing part of "get_nbns_name_type_class()" and put it