extract arrays to constants in Mapper