Split parsing for hooks into classes