Remove rewrite configuration. Keep it for server configuration/optimization.
Remove the statements that relate to the old rewrite configuration.
Route API can register non-core template conditions.
Route API pass the globals post and wp_query to all closures and controller methods as parameters.