Marketing, engineering and product teams are among those affected, according to a leaked memo.