private static boolean parkOnDeallocationOf(Node node, Agent agent) {
        return  agent != Agent.operator &&
               !node.status().wantToDeprovision() &&
                node.status().wantToRetire() &&
                node.history().event(History.Event.Type.wantToRetire)
                              .map(History.Event::agent)
                              .map(a -> a == Agent.operator)
                              .orElse(false);
    }
Returns whether node should be parked when deallocated by given agent
node-repository/src/main/java/com/yahoo/vespa/hosted/provision/node/Nodes.java