Good idea. I moved it into the companion object as suggested.