Simplifies some hashCode() methods