Update how replacements are handled.