Remove list of packages which is redundant.