Rename usedFactorLevels to getUsedFactorLevels