Refactoring: AbstractSecret comes from plugin framework