Refactor PluginManager.all method