Remove code that would be executed twice.