def load_handlers(controllers):
    """
    Load the controllers handlers and assign them to the instance
    """
    handlers = {}
    for controller in controllers:
        for handler in controller.build_controller():
            if handler.type in handlers:
                handlers[handler.type].append(handler)
            else:
                handlers.setdefault(handler.type, [])
                handlers[handler.type].append(handler)
    return handlers
