Refinancing doesn't change deductibility of interest. If the original loan interest was deductible then the new loan's itnerest would generally be deductible.
Different usage patterns could destroy deductibility however - eg. paying down a loan and redrawing for private use.