@RachelBryk Even if it's just that single line: If we were ever to change the algorithm (for whatever reason), we would need to change it in both places, wouldn't we? That's pointless room for stupid mistakes. Hence I would put it in a helper function regardless (unless I'm missing something).