Observing LiveData from ViewModel
In this blog post by Google developer Jose AlcĂ©rreca it is recommended to use a transformation in this case (see the “LiveData in repositories” paragraph) because ViewModel shouldn’t hold any reference related to View (Activity, Context etc) because it made it hard to test.