extract teamcity api to separate repository