; and (B) allow the borrower, at any time, to opt out of the loan refinancing under subparagraph (A) for such loan. (2) Procedures In refinancing an eligible non-Federal direct loan with respect to a borrower of such loan, the Secretary shall carry out the following: (A) The Secretary shall make a Federal Direct Consolidation Loan under this subsection, in an amount equal to the sum of the unpaid principal, accrued unpaid interest, and late charges of the eligible non-Federal direct loan. (B) The Secretary shall pay the proceeds of such Federal Direct Consolidation Loan to the holder of the eligible non-Federal direct loan, in order to discharge the borrower from any remaining obligation with respect to such eligible non-Federal direct loan. (3) Terms and conditions of refinanced loans (A) In general A Federal Direct Consolidation Loan made under this subsection shall have the same terms and conditions as a Federal Direct Consolidation Loan that was not made under this subsection, except— (i) that the Secretary may adjust such terms and conditions as necessary to enable the borrower to access loan forgiveness or other benefits available to the borrower under the loan before refinancing under this subsection, in any case where such benefits are more generous than provided under a Federal Direct Consolidation Loan