diff --git a/core/src/main/java/jenkins/telemetry/Telemetry.java b/core/src/main/java/jenkins/telemetry/Telemetry.java
index <HASH>..<HASH> 100644
--- a/core/src/main/java/jenkins/telemetry/Telemetry.java
+++ b/core/src/main/java/jenkins/telemetry/Telemetry.java
@@ -148,10 +148,11 @@ public abstract class Telemetry implements ExtensionPoint {
      * @since TODO
      */
     public boolean isActivePeriod() {
-        if (getStart().isAfter(LocalDate.now())) {
+        LocalDate now = LocalDate.now();
+        if (getStart().isAfter(now)) {
             return false;
         }
-        if (getEnd().isBefore(LocalDate.now())) {
+        if (getEnd().isBefore(now)) {
             return false;
         }
         return true;
diff --git a/core/src/main/java/jenkins/telemetry/impl/AutoRefresh.java b/core/src/main/java/jenkins/telemetry/impl/AutoRefresh.java
index <HASH>..<HASH> 100644
--- a/core/src/main/java/jenkins/telemetry/impl/AutoRefresh.java
+++ b/core/src/main/java/jenkins/telemetry/impl/AutoRefresh.java
@@ -35,7 +35,6 @@ import javax.servlet.http.HttpSession;
 import java.time.LocalDate;
 import java.util.HashSet;
 import java.util.Set;
-import java.util.Collections;
 
 @Extension
 @Restricted(NoExternalUse.class)
Apply code review suggestion, clean up imports