LPS-47750 - apply abstraction to DocumentLibraryUpload and LiferayUpload classes