Use more generic interface, such as `Set`, rather than a specific implementation as type.