If you intend to sell your home, refinancing may not be the best option. You will incur costs and fees as a result of refinancing, which you may not be able to recoup during the time you live in your home. Furthermore, if you are locked into a contract, you may be charged early repayment fees if you sell.
In general, if you intend to sell within the next five years, deferring refinancing is a good idea. The only exception may be if you intend to use the funds for home improvements that will increase the value of your home. This may make refinancing feasible, offsetting any costs and allowing you to save money before you move.