Refactoring code RelationFriends model