A Universal Decomposition for Distributed Optimization Algorithms