Once #3089 is merged, you'll need to change this signature to pass the event type as a separate parameter.