Factor out yank() from yankaux()