Refactor package_stemcell

some refactor.