Factor out merge-actions.