Introduce a new ReplaceCallWith method, which simplifies a lot of code.