Mechanism of cobalamin-dependent rearrangements