Yo can define a core bundle and declare this service in Core.
Because it is generic. I think yo create a CoreBundle and declare thise service definition in CoreBundle/config/services.yml.