Replace emitter on Grammar::deactivate so object can be reused