Replace a fake enum class with the real thing.