Sometimes, we only need a histeresis in one direction.
There have been two cases where a hysteresis function wasn't working correctly. It is therefore a good idea to abstract the hysteresis functionality into a library.