Refactor top_urls (p1)
Refactor top_referrers, based on top_urls