structure refactoring, migration framework