Added support to hoist complex  sub-expression in HOOK expression.