Refactor the codebase to support multiple active EntityManager instances