This patch extracts the modal functions from GRAPH_OT_decimate and makes them generic so they can be reused by future operators.
Note that to make that work, tGraphSliderOp now contains a function pointer that is used to point to the specific update function of the operator.