You are definitely on the right path with creating a plugin with this shared functionality. You won't have any issues calling out to the same endpoint but on a different application even if the same application has the same endpoint.
someplace.com/ping and myotherplace.com/ping won't have any issues nor would domain.com/appa/ping and domain.com/appb/ping