Is there any object oriented Drupal way to add a base field definition to an existing entity?
Of course I am familiar with
hook_entity_base_field_info(), but I am trying to keep my .module file size to a minimum and I was wondering if there is a way to achieve that with a different approach.
I thought of decorating or extending the entity, but after some research, I stumbled upon these issues that suggest those two options aren’t yet possible or elegant, as far as I understand.
Am I wrong in that?
Is there anyone that has had the same case and found a different approach?