Modularizing routes