Allow change the autocomplete factory