Move grammar configuration out of vocabulary.