We have code like this in lots of tests now:
new RepoDomainDb( LBFactorySingle::newFromConnection( $this->db ), $this->db->getDomainID() )
It would be nice to extract it into a convenience method somewhere. I’m not sure where that method should live, though… would RepoDomainDb::newFromConnection() make sense?