Tweaking the way update/export happens a little to avoid transferring unneeded refs around