Scala styling and test setup code reuse