(2) After giving the legal practitioner a reasonable opportunity to be heard, the court may do any one or more of the following:
(a) it may, by order, disallow the whole or any part of the costs in the proceedings:
(i) in the case of a barrister, as between the barrister and the instructing solicitor, or as between the barrister and the client, as the case requires, or
(ii) in the case of a solicitor, as between the solicitor and the client,
(b) it may, by order, direct the legal practitioner:
(i) in the case of a barrister, to pay to the instructing solicitor or client, or both, the whole or any part of any costs that the instructing solicitor or client, or both, have been ordered to pay to any other person, whether or not the solicitor or client has paid those costs, or
(ii) in the case of a solicitor, to pay to the client the whole or any part of any costs that the client has been ordered to pay to any other person, whether or not the client has paid those costs,
(c) it may, by order, direct the legal practitioner to indemnify any party (other than the client) against costs payable by that party.