small refactor to prepare for real circuit breaker impl