Similar refactoring as in SetTagKeyMixin.
Refactoring setting the default.
A bit more clarity.
Removed setting attribute only when configuration is set. As the configuration is a hash it just returns nil if the key is not set. Hence, nothing changes in this case.
Simplified if-else construct.