minor code cleanup for EnvironmentMaintenanceTasks