3-way valve

A 3-way valve has been cut into the drain line in the wall, downstream from the vent.  It was installed with no hub couplings.  The P-trap serving the sink is in the foreground.  The greywater outlet is drilled through the exterior wall, behind the valve.

3-way valve