fixup! fixup! move Mappings helper function to migration