Removed 'assert_no_duplicates_in_grid' because it's not generic.