Removed middleware router dependency.