Refactoring of getWebsiteSnapshot method