it looks like as if the purpose of line 71 to 76 is to create the component name out of the plugin id, I'd thus extract it to a method #createComponentName