Split autoloading out into its own file.