Describe the bug
lastConnectionInStack lives on the block, while lastConnectionInRow lives on the connection.
Expected behavior
Connection manipulation functions should be stored together. This makes them easier to use. And it makes it less likely that they will be accidentally duplicated.
Additional context
Both of these functions are package, so they can be safely moved.
In addition to the two above location options (connection or block) I would like to raise the option of moving these functions into their own "connection manipulation" file, as they don't access any private state. (lastConnectionInRow isn't even on the prototype)
Todo link