Move conversion to conversions.py