Add private __post method for refactoring
Make create_hosted_repo to use __post method