De dupe refactoring.