Limit contact subqueries by namespace for API filtering performance.