Move method definition.

Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>