Do you really need both these paths? Won't `(attribute - 10).abs / 2` just work in both cases?