Refactor duration thresholds as module constants