Replace namespaces by compound names