function getProfileFromSnap(snap) {
  // Real Time Database
  if (snap && snap.val) {
    return snap.val()
  }
  // Firestore
  if (snap && snap.data && snap.exists) {
    return snap.data()
  }
  return null
}
@param {firebase.database.Snapshot|firebase.firestore.DocumentSnapshot} snap - Profile snapshot
@returns {object|null} Profile from snapshot