Remove unused instances of unnamed enums.