Best refinance strategy for mortgage with small balance

Home equity product can pay off first loan, offer liquidity