Update and rename Environment.php to Factory.php