Migration support (initial implementation).
Removed obsolete code.