Refactor debit