(maint) Change config from 2D array to hashmap

Prior to this commit, the config that got autoloaded into dropdowns
was generated from a 2D array. This commit changes things by using a
hashmap, making the logic much easier to understand and use.