fix(sanitize): use a factory