Remove unused function: get_or_create_widget