[pgb-apploader] refactoring / cleanup unused code