Preprocess labels and exclude some instances