Better way for choose a hook function for a hook entry.

Signed-off-by: anuka <david.vas1@gmail.com>
Better name for this.

Signed-off-by: anuka <david.vas1@gmail.com>
A bit comment.

Signed-off-by: anuka <david.vas1@gmail.com>