protected function removeForPeriod($key, \DatePeriod $period)
    {
        $ranges = $this->getRanges($period);

        if (count($ranges) > 0) {
            foreach ($ranges as $range) {
                $range instanceof DateRange
                    ? $this->repository->removeForRange($key, $range->getStartDate(), $range->getEndDate())
                    : $this->repository->removeFor($key, $range);
            }
        }
    }