Treating migraine headaches with too many tests or prolonged use of prescription pain medication is risky."