Require active_support/core_ext/array/grouping in the task.