Use a function for retrieving a menu hook