Which two factors appear in the ruling of kinayah?

Haqiqah, Majaz, Sarih and Kinayah: Definitions and Rulings