Strikes me as a job for rulebooks.
A hiding-position is a kind of value.
Some hiding-positions are underneath, on-top-of, behind, inside-of.
a hiding-position has a thing based rulebook called the guide.
hiding-inside is a thing based rulebook.
hiding-inside the crate when the crate contains the motorcycle: rule fails.
hiding-inside a container: rule succeeds.
last hiding-inside: rule fails.
The guide of inside-of is the hiding-inside rules.
To decide if (t - a thing) can accept (Y - a hiding-position) for concealment:
follow the guide of Y for t;
decide on whether or not rule succeeded.