[ros-diffs] [cwittich] 32501: remove duplicated code