It seems a bit odd to me to depend on unittest, for code that's not running tests. What about just in-lining the definition of Pair? Here, or in src/utils.dart.