You have to walk through the HMDA steps to ensure the loan is not HMDA reportable...paying off a dwelling secured loan with a dwelling secured loan, loan to same borrower, collateral need not be the same dwelling.
If it is HMDA reportable, and is a business purpose loan refinancing a business purpose loan, and is not primarily secured by residential real estate (as described above), then it can still be a CRA Type 1 small business loan as a refinance. Refer to the CRA q and a for the refinance exemption for double reporting.