Routemap: Fix lint errors and remove unnecessary codes.