Refactor checks which operate on a segment of time

Refactors checks which operate on a segment of time to allow for less
repetition of code when defining similar checks.