Bug 18374: (QA follow-up) Simplify _truncate_terms