Remove unused allow_expired_tasks