It would be great to have a license setting to avoid the Data Function proprietary scripts from being exposed to certain groups of Analyst users, while allowing them to execute data functions.
As for right now, even with the Register data functions license disabled, developers are still able to see data function scripts in Data Canvas.
It is a frequently requested feature for usecases especially for some Partners or OEM customers.