Wouldn't your profile disarm holy paladins and resto shamans under this logic?
Also i don't think sap shouldn't even be a key.
Just auto sap anything that's not in combat if you're dancing.
Auto sap anything that's stealthed currently like a rogue or druid in arena. Use the arena frames to do this. This way you'll always get the first sap.
Other than that you should just have the main rotation paused while youre in stealth so that you can choose your own opener.
Unsure from glancing at your code if this is implemented already, but this should also pool energy unless your bursting. Should also try to incorporate a burst keybind.