Genetic factors tied to obesity may protect against diabetes