Code cleanup for Class::canBeEquipped