Improve safety of RingGroupUpdateTransitionFunctionImpl