Refactor notifier code to correctly use the max event stream position.