remove unnecessary code now in grammar-selector core