issue #19797: Replace removeKeys with sanitize.