As I've checked in Magento 2.3.1 Sales module there is one hardcoded Factory file in below path:
vendor/magento/module-sales/Model/ResourceModel/Order/CollectionFactory.php
And in Cms module there is no Factory file available
vendor/magento/module-cms/Model/ResourceModel/Block/Collection.php
I've read concept regarding factories which are automatically generated but I was surprised when I saw hardcoded Factory file. So just wanted to know the reason behind it.