Refactor conditions for Unhash#_unhash.