Shorten / simplify by abstracting over a duration-comparing predicate.
Merge heads