rqt_moveit) port common set of steps to a new method in rqt_py_common.