[hibernate-issues] [Hibernate-JIRA] Resolved: (HHH-6010) Remove duplication in code involving Work and ReturningWork