Refactor PluginsOperationManager.