Tiny cleanup to expandingMinMaxHelper