Get your taxes done using TurboTax

you should do it in two transactions.

you can always take out your own contributions.

the custodian has to calculate the earnings on your excess contribution for you and will do that when you request the excess removal. So you do that first.