Convert an array of {attribute: 'type', modifier: value} into a map
function convertOfficialArray (attributes) {
  let map = {}
  attributes.map(attribute => {
    let key = officialAttributeMap[attribute.attribute]
    map[key] = attribute.modifier
  })
  return map
}