Mitigating Carbon Footprint in Modern Datacenters by Exploiting Spatial Partitioning and Extending Device Lifetimes