server : simplify some route loading code