Remove pointless slow call to flatten method in autocomplete action