Remove unnecesary parameters from routes