Refactor the code and implement the evaluation of decorated tasks within BenchShark.