Refine configuration example in Scala