Refactor CodeParse class.