Hey, interesting question...
Personally i have found that putting a lot of work, or at least thought, into major NPC background and personality helps me a lot in giving them agendas that doesn't revolve around the PC's.
I usually also layer the information on major NPCs, keeping the deepest...