Separated GraspProgram type and associated functions into own module