Move page finding logic for sitemaps into the pagehandlers