refactoring bankin