The British Medical Association (BMA) is considering laying off up to a third of its workforce as part of a major restructuring plan.