Split up and fix get_etype_info