code: function moveTeam (params, cb) {
        let promise = null
        if (typeof cb !== 'function') [promise, cb] = asyncify()
  
        const { id, organizationId } = params
  
        db.withTransaction([
          (job, next) => {
            Joi.validate({ id, organizationId }, validationRules.moveTeam, (err) => {
              if (err) return next(Boom.badRequest(err))
              next()
            })
          },
          (job, next) => {
            job.params = params
            next()
          },
          checkBothTeamsFromSameOrg,
          moveTeamSql,
          moveTeamDescendants
        ], (err) => {
          if (err) return cb(err)
          teamOps.readTeam({ id, organizationId }, cb)
        })
  
        return promise
      }
docs: Nest/Un-nest a team
  
  @param  {Object}   params { id, parentId = null, organizationId }
  @param  {Function} cb