Note that this is incompatible, in the unlikely case someone outside the plugin has a subclass. Could be made compatible with more effort.