Remove unnecessary imports in the grammar parser (GH-24904)

2 files changed