I preferred your previous form of hiding this within the module as this requires extra logic to know about than simply including an authentication module.