Revert "重构代码，提取脚本级任务定义"

This reverts commit 5b83a21fdae52eb7112e3a563a941f52fa8328ed.
Revert "Revert "重构代码，提取脚本级任务定义""

This reverts commit d35138722af84951a9170e0bbe4a6a88fd9e02f1.
Revert "Revert "Revert "重构代码，提取脚本级任务定义"""

This reverts commit 6e6d8933c2a7f6b9412e7d2441966a1fb42c0a0a.