toResource
Remove ingress source from top-level AST