Fixes visibility symbols in the module

There were functions in the module that ought not to be made visible
when the it’s imported.