Moved code that sanitizes 'x' to _process_quantiles function