Turn an array into object to be used as constants