Don’t abstract your code blindly
Although code duplication is indeed an ugly code smell, I think it is worth mentioning here that refactoring against it will surely introduce a new abstraction layer (even if only a small one) and sometimes that can bring more issues than it solves.