I got tired of being asked, so I used Never10 [1] which is freeware from a reputable developer [2]. Never10 can also undo the decision and let you upgrade if you change your mind.
[1] https://www.grc.com/never10.htm
[2] https://en.wikipedia.org/wiki/Steve_Gibson_(computer_program...