Make context provider setter private