Move Bot's rollback function to the bot