Simplify Expression.reduce method