a refinanced Federal Direct Stafford Loan, a Federal Direct Unsubsidized Stafford Loan, a Federal Direct PLUS Loan, or a Federal Direct Consolidation Loan, respectively, issued to the borrower in an amount equal to the sum of the unpaid principal, accrued unpaid interest, and late charges of the original loan. (2) Refinancing FFEL program loans as refinanced Federal Direct Loans Upon application of a qualified borrower for any loan that was made, insured, or guaranteed under part B and for which the first disbursement was made, or the application for the consolidation loan was received, before July 1, 2010, the Secretary shall make a loan under this part, in an amount equal to the sum of the unpaid principal, accrued unpaid interest, and late charges of the original loan to the borrower in accordance with the following: (A) The Secretary shall pay the proceeds of such loan to the eligible lender of the loan made, insured, or guaranteed under part B, in order to discharge the borrower from any remaining obligation to the lender with respect to the original loan. (B) A loan made under this section that was originally— (i) a loan originally made, insured, or guaranteed under section 428 shall be a Federal Direct Stafford Loan