Cleaned up namespace API to be less serializer-specific