refactor Bills controller

the design pattern-y thing this would be is procedural abstraction. yay ap comp sci