Make single extent map a reusable library