[DDMD] [refactor] Move Initializer::toDt into a visitor class