removing the action part of the grammar (cleaning the grammar)