Reduced cPluginManager code duplication