Some completed tasks for automatic emails can contain invalid counts in related queues.
We need to fix it for displaying the correct counts.
[MAILPOET-5719]
Now that these filters are using the shared DaysPeriodField, they store
the day count in a field named days instead of used_payment_method_days
or used_shipping_method_days.
This migration is based on Migration_20230712_180341, where we needed to
do the same thing for other filters.
MAILPOET-5496
All these extracted methods contain DB version check so for existing
sites the migration will be just added as completed to the migrations table.
[MAILPOET-5416]