Detailed Balance Implies Unique Invariance