Don't generate no-op replacements.

No functional changes.