The Shipyard Interview Question

How do you deal with redundancy in code.