Added dependency injection of setting provider down the stack.