Refactor AI alternatives