Move jd_type.h into a macro.