Simplify object hashing.