DRY in configs

I tried to implement the ability to reuse already declared in the config key-value pair. It's not final version. For review and discuss.