Binning of the primordial power spectrum and optimal galaxy survey design