schedule helper refactor