Adding a check for attempting to define a route more than once.