Refactor of ResourceUrls. Extracted the url building inoto its own class