Refactored and added the ability to get the custom league URL from settings page.