Removing outdated chained replace calls