Delete unnecessary lines in routes