Part of #118145. Store intermediate data (factors and distances) in thread local storage for the paint and smear color brushes. The rest of the brushes aren't refactored to the new "standard", but most of the code we want to remove in the short term isn't used anymore.