Move Summary related functions into their own file. Change-Id: Ie063de83e5b5e2b6d93322dd901d23b53e3d4b6a