If the motion is denied, the court may, after opportunity for hearing, require the moving party or the attorney advising the motion or both of them to pay to the party or deponent who opposed the motion the reasonable expenses incurred in opposing the motion, including attorney fees, unless the court finds that the making of the motion was substantially justified or that other circumstances make an award of expenses unjust.
If the motion is granted in part and denied in part, the court may apportion the reasonable expenses incurred in relation to the motion among the parties and persons in a just manner.
Okla. Stat. tit. 12, § 3226.1