refactor(typeahead): remove unused code

Closes #1651