Refactor task runner into framework package.