Remove replacements useless after the addition of the substitution function