Split off utils for intervals between reconnects, into their own file.