LT-13956: Refactor obtain project code to common area

Also fix the 'exort' typo

Change-Id: Id8c7f7138670664c55bf910442faba03ee7c25e6