yeah as cooper said look at the system areas.
Can build out really robust systems, that basically get their own area(s) to do work in that is separate from the "player" areas. Which make them idea for just what you are wanting. Offload work to another area that is focused on just performing a particular task. Just need to really think about how you plan to push data back and forth though, especially with AI cause it needs to process local area data, and push that to the system area to make the decision and send the info back. So won't get it totally out of your area, but could have it fire a data gather, send it to the system area then use that data on the system area to decide the npc AI move, and send back the "next move" info.