Revert "Issue #1801570 by effulgentsia, klausi, Crell: DX: Replace hook_route_info() with YAML files and RouteBuildEvent. This unintentionally broke REST module tests." This reverts commit 7bf7eb83.