Change enum defs to use related for linking to associated types