Stake checkings refactoring