Delete now-unused index-time build_folder() and some unused imports.