I agree. But you get into a whole new class of data:parameters and local variables.
Maybe a simpler approach would be to allow the use of “include” files. This would allow code to be written once only, and referenced.
If you allowed ‘folding’ of the program, so that whole syntactically complete chunks could be optionally seen as a single box, then this would get over the “fall off the bottom” problem. Some text editors provide this for if–then-else languages / html