Cleanup some unused code in the rule-based translator.