Equational subcategories