4713. [cleanup] Minor revisions to RPZ code to reduce differences with the development branch. [RT #46037] (cherry picked from commit 68d7ff13)