1) Repetition is OK, but generally it is avoided if reasonable for matters of style. 2) When we use 'by then', should it always be past perfect. He still harbored the grudge although his wife (had) abandoned it by then.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.