This was assuming that `primaryTypeName` was always camelized but this is not longer the case since we are normalizing `typeKey` with the resolver, before comparing `typeName` with `primaryTypeName` we need  to normalize it.