From Rough Substruction
Key = [Device] : [Target] [Operator] [Domain]
Whole
Literal: X is X, e.g, God is God
Idiom: X in Y, e.g., Hand in Glove
Simile: X like Y, e.g., Hands like Shovels
Metaphor: X is Y, e.g., World is a Stage
Parts
Synecdote: Xi on Y, e.g., Hands on Deck
Catachresis: Xi of Y, e.g., Foot of Mountain
In sum, it is the operator (verb or preposition in these cases) that often determines the type of device.