Remove unnecessary state from the parser.