Refactoring BetsHelper