Added shared rebasing snippets.