Bug 870171 - Part 17: Add pruneEvents.
Bug 870171 - Part 18: Add pruneEnvironments.