CB-6481 Add plugin level hooks support