Question for JS performance folks:  Does it hurt to have `eventType` be able to be either an enum or an object with said enum here?  In other words, after many trips through this code with the enum, will JS de-optimize when it finds an object instead?