Move event handling to woocommerce manager