This should probably be generalised,Currently, we tie triggers to functions (actions) on the Trigger prototype. This is inconvenient if one wants several triggers, with different settings, to call the same function.
The main use-case is currently range triggers, since those can have a lot of different outcomes. but this is retro-compatibleBut I plan to extend that.