CalculatedAttributesUtil should return a value instead of relying on side-effects.