The Total Cost of Owning a Messy Code