Part of the autodocs refactoring.