Remove filesystem dependency of compute_transformation