factorize TaskFinished objects