Modularize setup-ido.el code.