refactor sample projects to use the common parent

Change-Id: Ifa1d02a653c0e00e0505687cb9f874cfd5d3ad9e