Adopt TaskAPI code from gerrit to only some files