To keep the dirt out of your upper frame tube, fit a set of these frame rubbers.

 

Japanese manufactured (they are actually an OEM Yamaha part for the XT600Z Tenere) high quality rubber and will not harden or fade over time.