remove obsolete stuff from yaml constructors and representers