Cleanup the code adding the sitemap filter to avoid code duplication
Implement hack to support CE <= 1.8 and EE <= 1.13 sitemap filtering