Move the namespaceIdentifiers rewriter to Planner