@Override
public Tensor transform(Tensor tensor) {
if (tensor instanceof Product) {
for (Tensor t : tensor)
if (t instanceof TensorNumber && ((TensorNumber) t).factorOutSign())
return new Minus(RemoveOneFromProduct.INSTANCE.transform(tensor));
}
return tensor;
}