Simplifying code in CrawledWebpageUtility.webpage_generator().