How big is the discharge pipe ?
I had started to plumb in a vintage water fountain in the shop, it was near the cleanout, so my plan was to drill/tap into the square nut portion...(to drain the excess water) ....
Cant remember but I think there was room for a 3/4 inch pipe thread..?
Might be a option if you have the pipe tap..