My doctor is crazy!

I called and said my genital warts were causing pain and irritating me lately (35 weeks pregnant) and he said I can take tyenol or if that don't work I can get a rx for hydrocodone.... Umm why are doctors so quick to jump to habit forming pain medication for people.... Especially while pregnant