Code Inspection recommended tweaks

removed create_league function and just create the league inline