refactor remove resource from PGP