Rearchitecting Datacenter Lifecycle for AI: A TCO-Driven Framework