ToC depth front-end cleanup to match the backend.