Small refactoring of an Option in MetadataWriter