Import cleanup
PromiseTaskFactory and OnceTaskFactory implemented