Clean up how filters are set on routes.