Factored Agents: Decoupling In-Context Learning and Memorization for Robust Tool Use