Function to remove <annot> when type=bracket