Moved emf factory creation to a single creation point in new class. Still some memory leaks issues