Strip the contents of references files