Classes can be used also out of context. Therefore you should not think of this class depending on the config, rather than the config depending on this class.

Code defensive :-)