Refactor: scheduler: functionize and expose parsing on-fail
... for readability, code isolation, and future reuse