split locality data and defs