refactor: make 'reject' arg order consistent with 'ack' et al
cherry-picked from bug24297