Optimizing migration functions

Avoid using Point.AsVector and Vector.AsPoint nodes