Remove unused grammar rules