Remove inner enumerations.