Carroll County is racing to rewrite its rules for retirement communities as officials say older residents are leaving the county.