Extract value-expansion code from widget.autosearch into its own function widget...