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