Refactor league views
- Extract logic in the view into model methods with accompanying tests
- Create percentage_format LeagueHelper method