Some companies devise training programs to break up hostility between workers.