[ #22321 ] Replace some global constants by scoped ones