Cleaned up code generation for TTree conversions.