Move methods out from trjconv