Maybe a protected method in the kernel that allows to add custom logic for dependency injection when instantiating new transformers