Wouldn't it be more flexible, and maintainable, if the latency behavior could be modeled via a [Decorator](http://en.wikipedia.org/wiki/Decorator_pattern) function?
That way, other modules could *require(..)* the hypothetical *latencyStubRepository* only when it's necessary.