[#9] Move metadata_modified code out of MultilingualDataset.before_index and into ECPortalPlugin.before_index, as is not related to multilingual code.