Instead of using `element(...)` below match in the head of the function.

```erlang
is_stale(Segment, {TimeScalar, Value}),
...
staleness(Segment, TimeScalar) >= Value.
```