Seperation of ROS specific code and extraction specific code