Move task to its own function since its ID regex is unique.