Add migration to rename license columns and refactor set_licence