Refactor Friend and Group models: extract new base class BaseChatModelView