Move static method definition before its usage.

Change-Id: Id766c2bea92e7ebf0de65046f73429b74b4fdda4