Refactoring. Autocomplete directive in Daytheme