Migrate from require to autoload