Refactoring. Abstracted the previously utils method that got a URL snapshot in a custom class