Split long file with multiple classes into short files with a single class.