Can I reroute these drain lines to make this stack more compact?
Depending on the size of the sink drain, (if it is 1 1/4") I think you can run it through the joist. Then the toilet will have a proper vent.