Add the filtering of labels.
Don't need local definitions here.

- This interferes with the global one, which is provided to typeahead.