Restore EntitiesContextFactory