Don’t allow duplicate rules when extracting tokens from grammars
Remove subclasses of Symbol for terminals and non-terminals