Extract all AI-related logic from the main REST handler into a new standalone `ais` package. This improves code organization by isolating AI-specific concerns, reduces coupling in the handler layer, and prepares for independent testing and future extension of AI capabilities.