Cleanup unused typeahead entries during typeahead generation