Simplified RestClientFactory for unit testing