Split overlaps.py into two modules.