make a feature mapper out of metadata.