extract hook installer class