Simplify hash code