Moved conversion methods to a separate file to reduce the clutter that would have inevitably happened