It's called scoping appropriately.
Even when world-building for a story, you have to stop yourself from writing about things like the cuisine of a village that's only mentioned once
because it doesn't serve the main story and ends up being a waste of time for both the writer and the reader