Tools to map between concrete and FactorIE representations