Flipping modules in PCB Editor doesn't work. The logic for this code is pretty close; it appears like we just need to flip the trace layer, and fix the 180 degree problem for 45 degree traces.
One thing to think about for the fix is how we define an "opposite layer" - e.g. on a 6 layer board, is the opposite layer for layer 2, layer 4? We could also just ignore that edge case for the V0 of the fix because most sublayouts will occur on the top and bottom signal layers.
To Repo: Drag in Module -> Press "F"