Make Offset::fromTicks a static function