Refactored BBBContentTypeFormController.php