Implementation for transforming namespaces or classes with reserved words