Removing duplicates of size definitions from documents