Remove lumped team.widgetTypes method with more functional visitWidgets.