Obsessively cleaning up expandingMinMaxHelper. Done now.