Refactoring of the Bank application