diff --git a/src/main/java/gov/usgs/earthquake/nshmp/calc/GroundMotionToCurveLambda.java b/src/main/java/gov/usgs/earthquake/nshmp/calc/GroundMotionToCurveLambda.java
index 55e372985467911b926ed44361001c4d43d01e11..d97fe7e8fc7c6a3ad9a2ae2d63503e0a71d20d04 100644
--- a/src/main/java/gov/usgs/earthquake/nshmp/calc/GroundMotionToCurveLambda.java
+++ b/src/main/java/gov/usgs/earthquake/nshmp/calc/GroundMotionToCurveLambda.java
@@ -74,44 +74,6 @@ public class GroundMotionToCurveLambda implements RequestStreamHandler {
     writer.close();
   }
 
-  /**
-   * Single hazard curve from Lambda function.
-   *
-   * @see GroundMotionToCurveLambda#groundMotionsToCurvesHandler
-   */
-  static class HazardCurve {
-    private final Imt imt;
-    private final Gmm gmm;
-    private final XySequence curve;
-
-    private HazardCurve(Imt imt, Gmm gmm, XySequence curve) {
-      this.imt = imt;
-      this.gmm = gmm;
-      this.curve = curve;
-    }
-
-    /**
-     * Returns the Imt associated with the hazard curve.
-     */
-    Imt imt() {
-      return imt;
-    }
-
-    /**
-     * Returns the Gmm associated with the hazard curve.
-     */
-    Gmm gmm() {
-      return gmm;
-    }
-
-    /**
-     * Returns the curve for a specific Imt and Gmm.
-     */
-    XySequence curve() {
-      return curve;
-    }
-  }
-
   /**
    * Wrapper class for Lambda input.
    */
@@ -213,4 +175,42 @@ public class GroundMotionToCurveLambda implements RequestStreamHandler {
       }
     }
   }
+
+  /**
+   * Single hazard curve returned from the Lambda function.
+   *
+   * @see GroundMotionToCurveLambda#groundMotionsToCurvesHandler
+   */
+  static class HazardCurve {
+    private final Imt imt;
+    private final Gmm gmm;
+    private final XySequence curve;
+
+    private HazardCurve(Imt imt, Gmm gmm, XySequence curve) {
+      this.imt = imt;
+      this.gmm = gmm;
+      this.curve = curve;
+    }
+
+    /**
+     * Returns the Imt associated with the hazard curve.
+     */
+    Imt imt() {
+      return imt;
+    }
+
+    /**
+     * Returns the Gmm associated with the hazard curve.
+     */
+    Gmm gmm() {
+      return gmm;
+    }
+
+    /**
+     * Returns the curve for a specific Imt and Gmm.
+     */
+    XySequence curve() {
+      return curve;
+    }
+  }
 }