REVIEW-4258: Inject class instead of providing a static method.