Of course, now that I think more of it, why not just generate the function to do the marking:

```scala
lazy val statusLevels = if (Play.configuration().getBoolean("metrics.showHttpStatusLevels").getOrElse(false))
  Some((100 to 500 by 100).toList map (x => x -> (() => registry.meter(name(classOf[MetricsFilter], statusLevelName(x)).mark)).toMap)
else None
```

Then below, where you mark them, you can just do

```scala
statusLevels map (s => s(statusLevel(status)).apply)
```