All constant folding operations involve one of these two statement
patterns. Adding tiny helper functions allows reducing them to
one-statement tail calls, thus reducing line count and chance
of error re when to return true.
For the RGB Mix node an additional helper can be extracted as a
method, to keep the necessary parameter count as 4 instead of 7.