Or, and I assume that’s what the GP was looking for, you write none of that and just fly by the seat of your pants.
I mean, I find this simpler
procedure x_component .. end
procedure y_component .. end
procedure assembly x_component y_component .. end
In python, rust, C++, java, lisp people seem to form very long procedures with lambdas and some ninja fu to save lines of code and it may look elegant to some people, but I can't read it.