It looks like the flags were removed in 3e27205a and can safely be removed here
Tracking: #18641
cc @core-libraries