Duplicate code removal.