cleanup mine unitdefs