Rerouting bathroom vent
From my understanding of IPC chapter 9, you can add turns as long as the horizontal part of the run slopes towards the drain at least 2% (1/4" per foot).  That's so if water gets into the vent it will flow down the drain by gravity and not pool up in your vent system.  Another stipulation would be you need to have at least 6" vertical rise above the flood level rim of the highest trap or trapped fixture being vented before going horizontal.  (horizontal being considered anything less than 45 degree slope)