Change trim_excessive tasks to just recalculate total_measures, close #248.