Remove mean() as the dim/region argument has made it into base.