They're often supreme Court cases over exactly this issue. Yeah varying definitions in different parts of legislation, which refer to different overlapping scopes or contacts. The court then goes to contextual clues for which reading is better supported. This can be the structural formatting of the legislation, public discourse of the legislature, or logical arguments. Overall, it's usually a mess.