Migrate to new protocol event API.