Simplify method.

+review REVIEW-5265
Push dedup'ing out to collection utils.

+review REVIEW-5265