Use an enum class now that they are available.