How to disable pass protection option for public share links?

When creating a public share link for a file the menu has an option to set a password for the file.
How do I disable or remove the password protection option from the menu?
After going through the Javascipt files of the app “files_sharing” the option to do something is in file “files_sharing_tab.js”.
Unfortunately the above file is rather difficult to handle. Most meaningful js code is on a single lines thats is tens of thousands of characters. Nano and many other editors just crashed on the file due to extremely lengthy lines.