Refactor project autoloader