Separate deferred task handling into async module.