That feeling when you go to rework some code to deal with a more complicated reality, and somehow the new code ends up simpler than the original.