I think it'd require to move this service definition modification inside a compiler pass