Driveshafts for sprayers