Moving my washing machine about 20 feet from current location (and 20 feet from main vent stack) so installing new p-trap, drain, and vent. P-trap and drain will be 2 inch; vent 1.5 inch. I understand (based on 248CMR 10.16(12)(a)) that the vent needs to be within 6 feet of the trap, but does the vent need to be vertical all the way from the drain connection up through the roof? I'd prefer to offset the vent about 3 feet so it can run up through the inside corner of a coat closet on the first floor. The vertical section of the vent will still be within 6 feet of the P-trap. I have no way of positioning the P-trap and drain so the vent could go straight up through the preferred position in the closet. Bad sketch of the situation attached!