CHG small refactor for object 'plugins'