Revert "Move some methods from Application to Router"

This reverts commit 8c0a68ad3ceb05deaa7b0f29def79d18a4e52b1f.