remove sub_relations from the InferCtxt
#119989
+409
−455
Merged