(ActivityAggregation) Moved auto-collect and delay out of RestAPI into a utility method.