There is no built-in way to hide a module field in HubSpot. The workaround you mentioned is the only way to do it. Or You can use a CSS selector to hide the field from the editor UI. You can use a JavaScript function to hide the field from the editor UI.