simplify conversion of element name to family name