Trimming up code in DingLibrary migration class