Extract InMemCargoRepository to infrastructure package.