Refactored DefaultInheritance to its own class which inherits from the ConnectionInfoInheritance class. Fixed issue with DefaultInheritance not saving to settings.
also made some refactoring changes in a quest to make the code more readable