Moved Classfile code into its own file.