Inspirational refactoring to follow Scala idiomatic design patterns (work still in progress).