Factoring plugin_config_data into proper trait. Adding similar trait to component factory