making the component_ref local to the newly created component_type