diff --git a/modules/checkout/commerce_checkout.module b/modules/checkout/commerce_checkout.module
index ddecb6e..1db0a42 100755
--- a/modules/checkout/commerce_checkout.module
+++ b/modules/checkout/commerce_checkout.module
@@ -26,6 +26,9 @@ function commerce_checkout_theme() {
     'commerce_checkout_form__with_summary' => [
       'base hook' => 'commerce_checkout_form',
     ],
+    'commerce_checkout_registration' => [
+      'render element' => 'form',
+    ],
   ];
 
   return $theme;
diff --git a/modules/order/src/Form/OrderItemTypeDeleteForm.php b/modules/order/src/Form/OrderItemTypeDeleteForm.php
index 26263b9..c1405c2 100644
--- a/modules/order/src/Form/OrderItemTypeDeleteForm.php
+++ b/modules/order/src/Form/OrderItemTypeDeleteForm.php
@@ -3,9 +3,7 @@
 namespace Drupal\commerce_order\Form;
 
 use Drupal\Core\Entity\EntityDeleteForm;
-use Drupal\Core\Entity\Query\QueryFactory;
 use Drupal\Core\Form\FormStateInterface;
-use Symfony\Component\DependencyInjection\ContainerInterface;
 
 /**
  * Builds the form to delete an order item type.
@@ -13,36 +11,10 @@ use Symfony\Component\DependencyInjection\ContainerInterface;
 class OrderItemTypeDeleteForm extends EntityDeleteForm {
 
   /**
-   * The query factory to create entity queries.
-   *
-   * @var \Drupal\Core\Entity\Query\QueryFactory
-   */
-  protected $queryFactory;
-
-  /**
-   * Constructs a new OrderItemTypeDeleteForm object.
-   *
-   * @param \Drupal\Core\Entity\Query\QueryFactory $query_factory
-   *   The entity query object.
-   */
-  public function __construct(QueryFactory $query_factory) {
-    $this->queryFactory = $query_factory;
-  }
-
-  /**
-   * {@inheritdoc}
-   */
-  public static function create(ContainerInterface $container) {
-    return new static(
-      $container->get('entity.query')
-    );
-  }
-
-  /**
    * {@inheritdoc}
    */
   public function buildForm(array $form, FormStateInterface $form_state) {
-    $order_item_count = $this->queryFactory->get('commerce_order_item')
+    $order_item_count = $this->entityTypeManager->getStorage('commerce_order_item')->getQuery()
       ->condition('type', $this->entity->id())
       ->count()
       ->execute();
diff --git a/modules/order/src/Form/OrderTypeDeleteForm.php b/modules/order/src/Form/OrderTypeDeleteForm.php
index 318b907..6f50767 100644
--- a/modules/order/src/Form/OrderTypeDeleteForm.php
+++ b/modules/order/src/Form/OrderTypeDeleteForm.php
@@ -3,9 +3,7 @@
 namespace Drupal\commerce_order\Form;
 
 use Drupal\Core\Entity\EntityDeleteForm;
-use Drupal\Core\Entity\Query\QueryFactory;
 use Drupal\Core\Form\FormStateInterface;
-use Symfony\Component\DependencyInjection\ContainerInterface;
 
 /**
  * Builds the form to delete an order type.
@@ -13,36 +11,10 @@ use Symfony\Component\DependencyInjection\ContainerInterface;
 class OrderTypeDeleteForm extends EntityDeleteForm {
 
   /**
-   * The query factory to create entity queries.
-   *
-   * @var \Drupal\Core\Entity\Query\QueryFactory
-   */
-  protected $queryFactory;
-
-  /**
-   * Constructs a new OrderTypeDeleteForm object.
-   *
-   * @param \Drupal\Core\Entity\Query\QueryFactory $query_factory
-   *   The entity query object.
-   */
-  public function __construct(QueryFactory $query_factory) {
-    $this->queryFactory = $query_factory;
-  }
-
-  /**
-   * {@inheritdoc}
-   */
-  public static function create(ContainerInterface $container) {
-    return new static(
-      $container->get('entity.query')
-    );
-  }
-
-  /**
    * {@inheritdoc}
    */
   public function buildForm(array $form, FormStateInterface $form_state) {
-    $order_count = $this->queryFactory->get('commerce_order')
+    $order_count = $order_item_count = $this->entityTypeManager->getStorage('commerce_order')->getQuery()
       ->condition('type', $this->entity->id())
       ->count()
       ->execute();
diff --git a/modules/product/commerce_product.services.yml b/modules/product/commerce_product.services.yml
index 0ad53d2..ce5dd84 100644
--- a/modules/product/commerce_product.services.yml
+++ b/modules/product/commerce_product.services.yml
@@ -1,7 +1,7 @@
 services:
   commerce_product.attribute_field_manager:
     class: Drupal\commerce_product\ProductAttributeFieldManager
-    arguments: ['@entity_field.manager', '@entity_type.bundle.info', '@entity.query', '@cache.data']
+    arguments: ['@entity_field.manager', '@entity_type.bundle.info', '@entity_type.manager', '@cache.data']
 
   commerce_product.lazy_builders:
     class: Drupal\commerce_product\ProductLazyBuilders
diff --git a/modules/product/src/Form/ProductTypeDeleteForm.php b/modules/product/src/Form/ProductTypeDeleteForm.php
index c566fbc..b8e1b60 100644
--- a/modules/product/src/Form/ProductTypeDeleteForm.php
+++ b/modules/product/src/Form/ProductTypeDeleteForm.php
@@ -3,9 +3,7 @@
 namespace Drupal\commerce_product\Form;
 
 use Drupal\Core\Entity\EntityDeleteForm;
-use Drupal\Core\Entity\Query\QueryFactory;
 use Drupal\Core\Form\FormStateInterface;
-use Symfony\Component\DependencyInjection\ContainerInterface;
 
 /**
  * Builds the form to delete a product type.
@@ -13,36 +11,10 @@ use Symfony\Component\DependencyInjection\ContainerInterface;
 class ProductTypeDeleteForm extends EntityDeleteForm {
 
   /**
-   * The query factory to create entity queries.
-   *
-   * @var \Drupal\Core\Entity\Query\QueryFactory
-   */
-  protected $queryFactory;
-
-  /**
-   * Constructs a new ProductTypeDeleteForm object.
-   *
-   * @param \Drupal\Core\Entity\Query\QueryFactory $query_factory
-   *   The entity query object.
-   */
-  public function __construct(QueryFactory $query_factory) {
-    $this->queryFactory = $query_factory;
-  }
-
-  /**
-   * {@inheritdoc}
-   */
-  public static function create(ContainerInterface $container) {
-    return new static(
-      $container->get('entity.query')
-    );
-  }
-
-  /**
    * {@inheritdoc}
    */
   public function buildForm(array $form, FormStateInterface $form_state) {
-    $product_count = $this->queryFactory->get('commerce_product')
+    $product_count = $this->entityTypeManager->getStorage('commerce_product')->getQuery()
       ->condition('type', $this->entity->id())
       ->count()
       ->execute();
diff --git a/modules/product/src/Form/ProductVariationTypeDeleteForm.php b/modules/product/src/Form/ProductVariationTypeDeleteForm.php
index 1332134..3a96d72 100644
--- a/modules/product/src/Form/ProductVariationTypeDeleteForm.php
+++ b/modules/product/src/Form/ProductVariationTypeDeleteForm.php
@@ -3,9 +3,7 @@
 namespace Drupal\commerce_product\Form;
 
 use Drupal\Core\Entity\EntityDeleteForm;
-use Drupal\Core\Entity\Query\QueryFactory;
 use Drupal\Core\Form\FormStateInterface;
-use Symfony\Component\DependencyInjection\ContainerInterface;
 
 /**
  * Builds the form to delete a product variation type.
@@ -13,36 +11,10 @@ use Symfony\Component\DependencyInjection\ContainerInterface;
 class ProductVariationTypeDeleteForm extends EntityDeleteForm {
 
   /**
-   * The query factory to create entity queries.
-   *
-   * @var \Drupal\Core\Entity\Query\QueryFactory
-   */
-  protected $queryFactory;
-
-  /**
-   * Constructs a new ProductVariationTypeDeleteForm object.
-   *
-   * @param \Drupal\Core\Entity\Query\QueryFactory $query_factory
-   *   The entity query object.
-   */
-  public function __construct(QueryFactory $query_factory) {
-    $this->queryFactory = $query_factory;
-  }
-
-  /**
-   * {@inheritdoc}
-   */
-  public static function create(ContainerInterface $container) {
-    return new static(
-      $container->get('entity.query')
-    );
-  }
-
-  /**
    * {@inheritdoc}
    */
   public function buildForm(array $form, FormStateInterface $form_state) {
-    $variation_count = $this->queryFactory->get('commerce_product_variation')
+    $variation_count = $this->entityTypeManager->getStorage('commerce_product_variation')->getQuery()
       ->condition('type', $this->entity->id())
       ->count()
       ->execute();
diff --git a/modules/product/src/ProductAttributeFieldManager.php b/modules/product/src/ProductAttributeFieldManager.php
index 694d27c..22f38a7 100644
--- a/modules/product/src/ProductAttributeFieldManager.php
+++ b/modules/product/src/ProductAttributeFieldManager.php
@@ -6,7 +6,7 @@ use Drupal\commerce_product\Entity\ProductAttributeInterface;
 use Drupal\Core\Entity\EntityFieldManagerInterface;
 use Drupal\Core\Entity\Display\EntityFormDisplayInterface;
 use Drupal\Core\Entity\EntityTypeBundleInfoInterface;
-use Drupal\Core\Entity\Query\QueryFactory;
+use Drupal\Core\Entity\EntityTypeManagerInterface;
 use Drupal\Core\Cache\CacheBackendInterface;
 use Drupal\field\Entity\FieldStorageConfig;
 use Drupal\field\Entity\FieldConfig;
@@ -31,11 +31,11 @@ class ProductAttributeFieldManager implements ProductAttributeFieldManagerInterf
   protected $entityTypeBundleInfo;
 
   /**
-   * The entity query factory.
+   * The entity type manager.
    *
-   * @var \Drupal\Core\Entity\Query\QueryFactory
+   * @var \Drupal\Core\Entity\EntityTypeManagerInterface
    */
-  public $queryFactory;
+  public $entityTypeManager;
 
   /**
    * The cache backend.
@@ -65,15 +65,15 @@ class ProductAttributeFieldManager implements ProductAttributeFieldManagerInterf
    *   The entity field manager.
    * @param \Drupal\Core\Entity\EntityTypeBundleInfoInterface $entity_type_bundle_info
    *   The entity type bundle info.
-   * @param \Drupal\Core\Entity\Query\QueryFactory $query_factory
-   *   The entity query factory.
+   * @param \Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager
+   *   The entity type manager.
    * @param \Drupal\Core\Cache\CacheBackendInterface $cache
    *   The cache backend.
    */
-  public function __construct(EntityFieldManagerInterface $entity_field_manager, EntityTypeBundleInfoInterface $entity_type_bundle_info, QueryFactory $query_factory, CacheBackendInterface $cache) {
+  public function __construct(EntityFieldManagerInterface $entity_field_manager, EntityTypeBundleInfoInterface $entity_type_bundle_info, EntityTypeManagerInterface $entity_type_manager, CacheBackendInterface $cache) {
     $this->entityFieldManager = $entity_field_manager;
     $this->entityTypeBundleInfo = $entity_type_bundle_info;
-    $this->queryFactory = $query_factory;
+    $this->entityTypeManager = $entity_type_manager;
     $this->cache = $cache;
   }
 
@@ -220,7 +220,7 @@ class ProductAttributeFieldManager implements ProductAttributeFieldManagerInterf
     if (!$field) {
       throw new \InvalidArgumentException(sprintf('Could not find the attribute field "%s" for attribute "%s".', $field_name, $attribute->id()));
     }
-    $query = $this->queryFactory->get('commerce_product_variation')
+    $query = $this->entityTypeManager->getStorage('commerce_product_variation')->getQuery()
       ->condition('type', $variation_type_id)
       ->exists($field_name)
       ->range(0, 1);
diff --git a/modules/store/src/Form/StoreTypeDeleteForm.php b/modules/store/src/Form/StoreTypeDeleteForm.php
index 7d6d9bf..b4e9a60 100644
--- a/modules/store/src/Form/StoreTypeDeleteForm.php
+++ b/modules/store/src/Form/StoreTypeDeleteForm.php
@@ -3,9 +3,7 @@
 namespace Drupal\commerce_store\Form;
 
 use Drupal\Core\Entity\EntityDeleteForm;
-use Drupal\Core\Entity\Query\QueryFactory;
 use Drupal\Core\Form\FormStateInterface;
-use Symfony\Component\DependencyInjection\ContainerInterface;
 
 /**
  * Builds the form to delete a store type.
@@ -13,36 +11,10 @@ use Symfony\Component\DependencyInjection\ContainerInterface;
 class StoreTypeDeleteForm extends EntityDeleteForm {
 
   /**
-   * The query factory to create entity queries.
-   *
-   * @var \Drupal\Core\Entity\Query\QueryFactory
-   */
-  protected $queryFactory;
-
-  /**
-   * Constructs a new StoreTypeDeleteForm object.
-   *
-   * @param \Drupal\Core\Entity\Query\QueryFactory $query_factory
-   *   The entity query object.
-   */
-  public function __construct(QueryFactory $query_factory) {
-    $this->queryFactory = $query_factory;
-  }
-
-  /**
-   * {@inheritdoc}
-   */
-  public static function create(ContainerInterface $container) {
-    return new static(
-      $container->get('entity.query')
-    );
-  }
-
-  /**
    * {@inheritdoc}
    */
   public function buildForm(array $form, FormStateInterface $form_state) {
-    $store_count = $this->queryFactory->get('commerce_store')
+    $store_count = $this->entityTypeManager->getStorage('commerce_store')->getQuery()
       ->condition('type', $this->entity->id())
       ->count()
       ->execute();
