MDL-39177 Remove code duplication
MDL-39177 Perform all checks on draftfile area before saving the files