Remove redundant resources.