Factor our mapTable into base.js