It would be better to create a new array of the events that are left after eliminating the ignoredEvents from the customEvents array. Then the implementation of `setup` would remain unchanged.