Clean up bookmark related codes.