Disable In-Call Asterisk Toggle Call Recording via COS

I would like to restrict usage of the In-Call Asterisk Toggle Call Recording feature code.
I am thinking COS might be the way, but the feature code is not available for “Deny/Allow” in COS.

How do I allow it for some extensions and deny it for others?