Split out type id code.