A conditional that keeps growing is a design problem, not a style problem. How to turn each branch into an object, one green step at a time.