Refactoring taskd data path handling.