emitter: Move storage clearing into a function.
emitter: Move storage clearing into a function.

FascinatedBox/lily,FascinatedBox/lily,jesserayadkins/lily,jesserayadkins/lily,FascinatedBox/lily,jesserayadkins/lily,FascinatedBox/lily