Refactor worker tasks

[#62957536]

Signed-off-by: Phan Le <ple@pivotallabs.com>