Past experience shapes the neural circuits recruited for future learning