I wonder if this is the 'standard' thing to do when you have a broken hash function. I took a introductory course in computer security a year ago and we had to create MD5 hash-colliding documents for homework[0].
[0] https://courses.engr.illinois.edu/cs461/sp2015/static/proj1.... (see part 4)