Clean up rule pointers.