Content view register (after rebase)

How about dropping these ~31 lines of code? I see that similar functionality has also been created via the `_get_json_or_raise` method and `EntitySearchFactoryMixin`.