Issue 22489: Fix mangled setting descriptions, refactor some docs-related code

I have some test cases for the scrub() method, but could use some help writing tests. *waggles eyebrows at Adrien and Jeff*