refactor(plugins): small code dedupe
refactor(plugins): small code dedupe

driftyco/ionic-cli,devtotvs/thf-mobile-cli,driftyco/ionic-cli,ricardo-mello/ionic-cli,driftyco/ionic-cli,devtotvs/thf-mobile-cli,ricardo-mello/ionic-cli,devtotvs/thf-mobile-cli,ricardo-mello/ionic-cli