Sentence reworded to remove extra clause

See the diff: the sentence previously included "to do this" and "to avoid this" which confused me to read. I hope that this rewording is a little clearer.