Refactoring local context towards EBNF layer.
Refactoring local context towards EBNF layer.