It would be beneficial if the total cost, installment, or new terms were better after accounting for early repayment fees and the new financing.
If all that changed was a lower installment for a much longer term, you might end up paying a higher total.
The figures, fees and limits in this answer vary by bank and change over time — confirm them with your bank or the official source before acting.