Currently only works if `categorise_by_percentile()` is applied to existing categories, but this must be made more general.