Simplify version expression