Refactoring: extracted Interpretation generator from Agent generator.