Trimming internal state machines of unused client events.