Restore compatibility of legacy autocompletion API.