public static Expression ToExpression(this FM.Quantity quantity) { if (quantity.IsUcum()) { var q = quantity.ToUnitsOfMeasureQuantity(); return(q.ToExpression()); } return(quantity.NonUcumIndexedExpression()); }