kap init creates required directories
Extracted migration function eval code