convert hook_library