I think my question was not clear enough. I mean do we have standard for this like defining a service in a file like services.yml which will then be imported?