Upgrade Router using before hooks