Revert "Remove hanging_pieces() (6180869)"

This reverts commit d66b152affacc28efd5e9eb061795a62158b4935.
fix release script