[12623] Simplify and add comments to new stats system code.