Put local static fucntions into anonymous namespace.

Change-Id: Id838860b6d44febe72fe3e51081107d5635e19b8