Removing duplicate resources