A reusable host mapping construction for use in other madlib modules.