Refactoring the transfer verification code.