Move all fields to a subfield?

Referring to the event as a hash was disabled years ago, you need to use the event API, like this.