move <shared> validations from Config to ConfigSource