How are the 8 seeds decided for last 16?

Is it old firm, dons, hibs and the villagers and 3 best group winners?