CLEANUP: Extracted triple grammar from term grammar module.