Refactor JPA OMR to share objects and remove Hadoop from build