Merged replace and deepReplace instructions (this had no impact on performace).