BBC legal team escapes job cuts