reduce_agegroups function

Reduce the number of age groups given a broader set of limits