Handle nested ns-specs without explicit middleware in canonicalize-ns-specs