Enhancement
BR needs to use DumpStatsToJSON and LoadStatsFromJSON. But we don't want it to use handle, which introduces domain.
It's dangerous to use domain in BR, since a domain represents a tidb. But it's not a real tidb in BR, it may miss some bootstrap operations, and cause bugs.
So it's better to make DumpStatsToJSON and LoadStatsFromJSON as normal functions.