Various cleanup, such that superclasses can easily modify translation of node name and weight to keys