I thought about that but never really had an issue. We did once in our Allegro Bus but that was after many years and a dump of Happy Camper's Super Cleaner took care of that.
However, I've seen a system using the SeeLevel 720 series auto management system. This system totally controls your plumbing system if you want it to. It uses electric dump valves, fill solenoids, pressure sensors, tank level sensors, etc. It also has a large "windshield washer fluid" tank where you keep your chemical in. It can send a predetermined amount to either tank. Initiating the auto mode will dump your black tank, send the gray after it to flush the hose, then add some water and chemical to the black tank.
I don't want to go that far but I did plumb the black tank sprayer directly to the Pex water system. I tee'd into the incoming Pex line, added a check valve and then a 12 volt solenoid valve before running to the existing sprayer head. I added a rocker switch to control it, along with a panel mounted LED and turn signal flasher so whenever it is on it flashes as a reminder.
It should be noted here, due to the fact that many Tiffin owners are upgrading to Entegras

, that the Tiffin spray was anemic. Everyone was drilling the nozzles out with a 3/32" drill bit. I find that the Entegra spray head does spray a decent amount of water so you won't need to drill those nozzles out.
Eventually I'll install Silverleaf's Total Coach system. This will have the ability to do so programming of the plumbing system so have an electrically controlled black tank flush valve means that I can control that as well. By replacing the SeeLevel 709-P3 panel in the coach interior with a 709-A-RVC you will gain analog alarm outputs that can warn you if a tank level gets too low or too high. You can also design an interlock to lock out the tank sprayer if the tank level gets too high. Or, you can just use the RV-CAN network protocol to handle it all in the Total Coach system digitally.
I also redesigned the Pex water gallery behind the wet bay panel and rearranged the various tees so that I could install my water softener after the fridge and galley drinking water was tapped.
Attached is a schematic of my plumbing system.