Revert "Refact publish package"

This reverts commit 3bb43cfb1ca5ed9d4c9128ced0837328a4817bc0.
Move get scope field outside of Setter