Refactoring Autoloader.php