Copy module state on duplication.