The most recent loan is the financial institution that bought the loan. . Enter all the information from the first 1099-Mortgage Interest Form (original loan). Mark that it was sold when TurboTax asks. Next, enter the second 1099-Mortgage Interest Form. Don't enter that the second one was refinanced since the mortgage wasn't refinanced, just sold.
The outstanding mortgage principal will be in box 2 of the current servicer. There shouldn't be an outstanding mortgage principal for the original servicer since the loan was transferred.