refactoring on beer league app