Move gen_lit to types.