A good starting place might be is to look for use of the TranslationConfig, which specifies which instances we currently want to generate by default, as well as the TranslationState, which is used to track our conclusions (instanceMap, specifically).