Removing redundant libraries