Inline Temp

You have a temp that is assigned to once with a simple expression, and the temp is getting in the way of other refactorings.

Replace all references to that temp with the expression.

double basePrice = anOrder.basePrice();
return (basePrice > 1000)

image/svg+xml

return (anOrder.basePrice() > 1000)

inverse of Extract Variable