Converted a constants class into an enum class.