Move classify_leaf() to c'tor in bitbases

No functional change.