Extract Work.getAll method.