This is wrong IMO. We have `form-collection.js`, so you should use it, if it's bounded too much with images, maybe just adjust it or split, but here it should not be hardcoded.