Reduce if/else depth.