Reformat and rename hash_after_move()

Align to standard codying style and properly use
enum types. Rename while there.

No functional change.