Comments say this code is duplicated from elsewhere and should be consolidated. This code recomputes something to avoid a scratchpad in the UState to save the value for reuse. But generally it would be better to chase down the duplication and fix it that way.