Factor out quantile to a Utils class.