What you describe here sounds like a design challenge. Context often must be discovered or inferred in these cases. I'd…