[ros-diffs] [mpiulachs] 30465: Move ReplaceVariable funtion to the Environment class inset of using 3 copy-pasted versions of this function