Split off entity state methods into EntityState class. Rename HandlerGroupBase to HandlerGroup and make template HandlerGroupWithSize. Update KnobsAndButtons example to use new EntityState form.