Move `hash_to_message` to variable