optimize-binning script cleanup