Yes, if you place the replace filter at the top, you don’t need the <exclude>.AEM processes filters in order, so the replace on /persistentQueries runs first and overrides everything there. The following merge on /conf/myproject won’t reprocess that path.