<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def hooks_factory(identifier, configuration, context):
 """ Returns the initialized hooks. """

    manager = HookManager(identifier, configuration)
    manager.load_hooks(context)

    return manager