refactor all private methods in the virtual router appliance and VPC appliance