Refactored config key reading codebase