Define EventEmitter listeners on a class instead of each individual instance