Refactor cpyExclude