Remove deprecated all_code_files() function. Consolidate remaining code.