Refactoring for extract a package name from the package node.

Signed-off-by: AndroWiiid <androwiiid@gmail.com>
Refactoring for extract package name from package node.

Signed-off-by: AndroWiiid <androwiiid@gmail.com>