[agent] DRY up ApplyPlan's Job and Package by adding Helpers