They are multiple use of the url in the code. I would suggest to factor this out as a module global