Reduce duplication using closures.