Filtering out non-relevant labels