The Shipyard interview question

How do you deal with redundancy in code.