Fix issue from rebase; migrateTo now needs writer.get().