The first loan seems to fit the definition of a “home purchase,” but may be exempt as a bridge. The second loan loan appears to meet the definition of a “refinance,” but again it may be a bridge loan. You mention long-term financing, which reduces the likelihood that either loan is a bridge loan. You also mention a contractor.
We need a little more information here.
What is the term of each loan?
Is either loan used for construction?
What is the nticiated payout – monthly payments or proceeds of the sale of the current home?