@AD7six A separate method is a good idea, I extracted one.