Implement nested namespaces support