Extract time type converter to use from other source file