Move details of hook_menu() to helper class.