Reroute nodes simplify function inputs
When there is one variable feeding a lot of nodes you want to condense into a function, an easy way to avoid many function input pins is to Ctrl+Drag the variable with lots of outputs and choose Add Reroute Node, and then feed it into the variable. You can then drop the reroute and what stems from it into a function and have just one input variable.