Complex sentence: Moving the corpse of a pauper was less troublesome, as their bodies often kept in mass graves, left open to the environment until filled--a process which often took weeks.
Split into simpler sentences: Moving the corpse of a pauper was less troublesome. The poor were often buried in mass graves, left open to the environment until filled, a process which often took weeks.