Remove Logger and Cache abstract factories

- so that we do not introduce new dependencies in the MVC component
Merge branch 'pr4389'
Close #4389