Move partgen_t to header.