Moved shared event initializer from closure to class implementation