Refactoring package sample.plugin