extract MAP to constants.js