Offline gpx track extraction from smart watch

How can I extract recorded gpx tracks from my watch without uploading them to the Garmin cloud first? This upload/cloud approach is roundabout and has privacy issues.

I hate any kind of cloud.

The watch connects as a standard USB mass storage device and all the necessary information should be already there, completely offline.