Update grammars structure.