Ref: Split bot state into classes.