That is how you do it. If you want to stay, you keep your mouth shut, you tell management you want to stay and you work out an extension early.
If you never planned on staying and think you were too good for your team, well, you use a different strategy.