Scala Collector: Refactor.