Rename environment to factory.