Extract min/max to their own files.