removeRedundantKeys

Removes any keys from the configuration that are not associated with any registered delegate. This helps keeping the configuration file clean from legacy settings.