refactor context out of work_commitment view to prep for re-use