Optimize autocomplete list to avoid same labels