Removal of factory_widget attribute and related functions.