refactor custom attributes (user_id, community_id) for community