<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _setup_features(self):
 """ Setup the advanced widget feature handlers. """

        features = self._features = self.declaration.features
        if not features:
            return
        if features & Feature.FocusTraversal:
            self.hook_focus_traversal()
        if features & Feature.FocusEvents:
            self.hook_focus_events()
        if features & Feature.DragEnabled:
            self.hook_drag()
        if features & Feature.DropEnabled:
            self.hook_drop()
            
        features = self._extra_features
        if features & GraphicFeature.WheelEvent:
            self.hook_wheel()
        if features & GraphicFeature.DrawEvent:
            self.hook_draw()