Simplify the coding of the unchain operation.