Trim the matrix to versions that make sense