Refactoring of the vertex moving code (yet another), preparation for junction transformations.