Convert map controls to revealing module pattern