Move methods from view to object