ES6: `grouped-each` helper and moved event dispatcher to an initializer