Restructuring files by moving entities into div.