Put common code in a shared target rather than copying lines.
Put common code in a shared target rather than copying lines.

Change-Id: I4de28e5ff28f92e7c69ec8c72d8296c1cdbc4db4

project-oak/hafnium-verification,project-oak/hafnium-verification,project-oak/hafnium-verification,project-oak/hafnium-verification,project-oak/hafnium-verification,project-oak/hafnium-verification,project-oak/hafnium-verification