[GCode::Object] Switched to case statement in process to improve readability.