refactoring (bill processing moved into separate package from views)