Merge pull request #17862 from lucasmazza/lm-hide-action

`_generate_paths_by_default` should always be private.