Moving coordinate transformation routines to their own module.