The helper function to compute delay until next light client sync task can be useful from more general purpose contexts. Move to helpers, and change it to return `Duration` instead of `BeaconTime` for flexibility.
The `nextLightClientSyncTask` helper is generic enough to be useful for contexts besides libp2p based light client sync. Extract it.
Reduce code duplication when checking response of `UpdatesByRange`.