refactor IndexNames in preparation for making a 5.10-backcompat names loader
make 5.10-backcompat loader for generate-names.pl