Move code from misc-conf.el to separate files