Refactor migration chapters