Refactors the confirmation.