Rewrote `Router::resources()`.