Filter visited classes.