The existing macro always inherits from KPluginFactory -- making it hard to use when sub-classing KPluginFactory in order to extend it. The parameter baseFactory to the macro isn't used.
Use baseFactory as the base class for the plugin.
BUG #410851