Blueprint nodes in vertical sense

Hi Everynone, I attached 2 pics. First would be an answer on how to put that struct into a function; second is an example (for real code) of a big blueprint.
I can’t imagine the amount of spaghetti it would be to put all that nodes in Unreal.