CO Depletion in Protoplanetary Disks: A Unified Picture Combining Physical Sequestration and Chemical Processing