Where to add custom pathfinding?


my current project likely requires some changes in the pathfinding (RTS-like) of units. We are currently using behavior trees, which make spawned units run towards a defined location. These Behavior Trees contain a “move to” node for this purpose. I was wondering, where to add a custom pathfinding. Would I add it in the “move to” node? Or somewhere else?