Remove before hook