bank refactoring