function unWatchUserProfile(firebase) {
  const {
    authUid,
    config: { userProfile, useFirestoreForProfile }
  } = firebase._
  if (!firebase._.profileWatch) {
    return
  }
  if (useFirestoreForProfile && firebase.firestore) {
    // Call profile onSnapshot unsubscribe stored on profileWatch
    firebase._.profileWatch()
  } else if (userProfile && firebase.database) {
    firebase
      .database()
      .ref()
      .child(`${userProfile}/${authUid}`)
      .off('value', firebase._.profileWatch)
  }
  firebase._.profileWatch = null
}
Remove listener from user profile
@param {object} firebase - Internal firebase object
@private