Cleaning up generation visitors.