Remove old legacy posthook code.