Hash code for the immutable parts