I've seen similar before where on the new loans on the new home, they asked for a split to represent Loan B for an identical amount that Loan B was previously. The balance of everything else goes into the new Loan A.
Then you can argue Loan B = Loan B, so purpose of those funds are still...