def METHOD_NAME(self):
    for service in self.services[:]:
        if service['name'] != 'post-setup':
            if Config.installed_instance:
                if not service['install_var'] in Config.addPostSetupService:
                    self.services.remove(service)
            else:
                if not Config.get(service['install_var']):
                    self.services.remove(service)