Nit: I might group these declarations in a ``val ( )`` block.