target: replace ->get_cdb with a target_get_task_cdb helper