I know these seems like magic numbers but mode is actually the index of the current mode in the modes array.
Basically, I want to say that this function is used internally by the controller's `isDisabled` function to compare with `min` & `max`, and I am not sure how someone can use this constants in his linking function, unless we also expose current mode on the controller.