refactor: move code from extensions-client-common here when this repo was the only consumer of it
Created by: sqs
This PR does not need to update the CHANGELOG because it is not user facing
Created by: sqs
This PR does not need to update the CHANGELOG because it is not user facing