How to cut hole larger than 1/3 of joist?
I have seen these before. https://www.metwood.com/joist-reinforcers/ . I do not know if they are code approved, but it looks like a good start. 


This pic is from their website

It looks like they are not graduated lower to account for the fall of the pipe unless they over sized the hole to allow for some slope.