sgw: policy script: move some declarations