Introduces filter for sitemap base URL, as requested by WPML.
Minor refactor to use DRY-principle.