Can you convert this into a Log method, and use something like throw log.requireDistOrReplCache(String) ?