Refactor TemporalIndexCheck to be more concise.