move a typedef to a better location