Revert "refactors routes to remove deprecation warnings"

This reverts commit 13686582f18f174d15d6490cf11e02612cc0bcbb.