I have two packages in Scala: `package foo` and `package bar`. Both have a `Utils` object in them that has same methods `doSomething()` and `doSomethingElse()`. Code looks like this:

Inside package foo

```
object Utils{
def doSomething()
def doSomethingElse()
}    

```

Inside package bar

```
object Utils{
def doSomething()
def doSomethingElse()
}    

```

Is there a way I can provide a common ground from where both the packages can use the methods in `Utils` object? I want to avoid code duplication. What I have in mind is to write a package object in one of the packages and import that in the other package. But is there a better way to eliminate code duplication?