Refactored find/replace references command and moved the code into robot_references