Changed ObjectBasedEnums pattern so it is required for the values to be
inside the companion object of the enum class.