DIEHash: Refactor ref attribute hashing into smaller functions