Add ability to override how type ancestors are discoverd.