Clean up hash code.