Renames a class to the name of its containing file.