Simplify get type from the hash.