clean up codes of SmartAI:get(Friends/FriendsNoself/Enemies)