re-use rebase() function in squash() function.