Correctly handle the case where namespaces already exist, or are reused.