Separate tags into yaml lists.