Move typemaps to separate file